package com.lyl.momanapp.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;

import com.lyl.momanapp.R;
import com.lyl.momanapp.util.view.MyBaseActivity;

/**
 * 名字 梁亚龙
 * 时间 2017/9/26.
 * QQ邮箱 503934353@qq.com
 * 用户优惠劵页面
 */

public class UserCouponActivity extends MyBaseActivity {

    private ImageView mFanhui;
    private ImageView mZhuye;
    @Override
    public void initUI() {
        setContentView(R.layout.activity_user_coupon);
        mFanhui = ((ImageView) findViewById(R.id.fanhui));
        mZhuye = ((ImageView) findViewById(R.id.zhuye));
    }

    @Override
    public void initData() {

    }

    @Override
    public void addListeners() {
        mFanhui.setOnClickListener(this);
        mZhuye.setOnClickListener(this);
    }
    @Override
    public void onClick(View view) {
        switch (view.getId()) {

            case R.id.fanhui: {
                finish();
            }
            break;
            case R.id.zhuye: {

                startActivity(new Intent(UserCouponActivity.this,MainActivity.class));
                finish();
            }
            break;

        }
    }
}
